package Model;

/**
 *
 * Superclass for Clothing, Equipment and GunReplicas
 * 
 * @author Group 1
 * @version 2011.03.30.
 */
public class Product {
    private int id;
    private String name;
    private Supplier supplier;
    private double purchasePrice;
    private double salesPrice;
    private double rentPrice;
    private String countryOfOrigin;
    private int minStock;

	// empty constructor
	public Product() {}

    /**
     * Constructor
     * 
     * @param name
     * @param purchasePrice
     * @param salesPrice
     * @param rentPrice
     * @param countryOfOrigin
     * @param minStock 
     */
    public Product(String name, Supplier supplier, double purchasePrice, double salesPrice, double rentPrice, String countryOfOrigin, int minStock) {
        this.supplier = supplier;
        this.name = name;
        this.purchasePrice = purchasePrice;
        this.salesPrice = salesPrice;
        this.rentPrice = rentPrice;
        this.countryOfOrigin = countryOfOrigin;
        this.minStock = minStock;
    }
	public Product(int id) { this.id = id; }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public int getSupplierId() {
        return supplier.getId();
    }
    

    
    public String getCountry() {
        return countryOfOrigin;
    }

    public void setCountry(String countryOfOrigin) {
        this.countryOfOrigin = countryOfOrigin;
    }

    public int getMinStock() {
        return minStock;
    }

    public void setMinStock(int minStock) {
        this.minStock = minStock;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(double purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public double getRentPrice() {
        return rentPrice;
    }

    public void setRentPrice(double rentPrice) {
        this.rentPrice = rentPrice;
    }

    public double getSalesPrice() {
        return salesPrice;
    }

    public void setSalesPrice(double salesPrice) {
        this.salesPrice = salesPrice;
    }
}
